#include "Arr_Queue.h"
#include <stdio.h>

int main()
{
    Arr_Queue *queue;
    queue = InitQueue(10);
    Enqueue(queue, 0);
    Enqueue(queue, 1);
    Enqueue(queue, 2);
    Enqueue(queue, 3);
    Enqueue(queue, 4);
    Enqueue(queue, 5);
    Enqueue(queue, 6);
    Enqueue(queue, 7);
    Enqueue(queue, 8);
    Enqueue(queue, 9);
    Dequeue(queue);
    Enqueue(queue, 10);
    Enqueue(queue, 11);
    Dequeue(queue);
    Enqueue(queue, 12);
    for (int i = 0, j = queue->headIndex; i < queue->curLength; ++i)
    {
        printf("%d", queue->basicArr[j].element);
        if(++j >= queue->size)
        {
            j = 0;
        }
    }
    return 0;
}